package com.ichir.projects.uiflow.internal.factories;

import java.util.Map;

import com.ichir.projects.uiflow.ApplicationContext;
import com.ichir.projects.uiflow.definition.IFlowPart;
import com.ichir.projects.uiflow.ui.api.IUiPart;

public class UiActionFactory extends UiPartFactory {

	@Override
	protected IUiPart getPart(IFlowPart flowPart, ApplicationContext context,
			Map<String, Object> attributes) throws Exception {
		System.out.println(">> new instance of "+flowPart.getUiPartClassname());
		return flowPart.getUiPartClassname().newInstance();
	}

}
